<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:or="http://xml.netbeans.org/schema/orders">
    <xsl:output method="html"/>
    <xsl:template match="/">
        <html>
            <body>
                <xsl:apply-templates/>
            </body>
        </html>
    </xsl:template>

    <xsl:template match = "or:orders">
        <table border ="2" >
            <xsl:for-each select = "or:order">
                <tr>
                    <td>
                        <xsl:value-of select="or:id"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:userName"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:orderDate"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:statusName"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:email"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:phone"/>
                    </td>
                    <td>
                        <xsl:value-of select="or:address"/>
                    </td>
                </tr>
            </xsl:for-each>
        </table>
    </xsl:template>

</xsl:stylesheet>
